<template>
  <el-card>
    <div class="card_header">
      <slot name="header"></slot>
    </div>

    <div class="card_number">
      <slot name="number"></slot>
    </div>

    <div class="card_chart">
      <slot name="chart"></slot>
    </div>

    <div class="card_footer">
      <slot name="footer"></slot>
    </div>
  </el-card>
</template>
<script setup lang="ts"></script>
<style scoped lang="scss">
$color: yellowgreen;
.card_header {
  color: $color;
}
.card_number {
  color: $color;
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
  margin-top: 5px;
  text-indent: 5px;
  animation: donghua 0.5s ease-in-out 0s 1;
}
.card_chart {
  width: 100%;
  height: 80px;
  border-bottom: 1px solid $color;
}
.card_footer {
  color: $color;
  font-size: 14px;
  margin-top: 5px;
}

@keyframes donghua {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
</style>
